package PolymorphismInstanceof.PolymorphismInstanceofExercise.PolymorphismInstanceofExerciseThree;

public class Circle extends GeometricObject{

    private double radius;

    public Circle(double radius, String color, double weight){
        super(color,weight);
        this.radius = radius;
    }

    @Override
    public double findArea() {
        return Math.PI * Math.pow(radius,2);
    }
}
